import service from "../utils/request";

// 查看轮播图
export function bannerList(params: any) {
    return service.get('/banner/list', { params })
}

// 首页导航
export function catelist(params: any) {
    return service.get('/index/catelist', { params })
}

// 城市列表
export function sortCity(params: any) {
    return service.get('/city/sortCity', { params })
}

// 删除地址
export function address_del(payload = {}) {
    return service.post('/address/delete', payload)
}

// 添加地址
export function address_add(payload = {}) {
    return service.post('/address/add', payload)
}

// 地址列表
export function address_list(params = {}) {
    return service.get('/address/list', {params})
}

// 更新地址接口
export function address_update(params = {}) {
    return service.post('/address/update', params)
}

// 查询默认地址
export function defaultAddress(params = {}) {
    return service.post('/address/defaultAddress', params)
}